package com.dao;

import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface OthersDao {

    List<Map<String, Object>> selectCategories();

    List<Map<String, Object>> selectBasicCategory();

    List<Map<String, String>> getAllLabels();

    int insertFeedback(
            @Param("userId") String userId,
            @Param("title") String title,
            @Param("content") String content,
            @Param("pic1URL") String pic1URL,
            @Param("pic2URL") String pic2URL,
            @Param("pic3URL") String pic3URL);

    List<Map<String, Object>> selectAllFeedback(@Param("start") int start, @Param("num") int num);

    int updateFeedbackStatus(@Param("id") int id);

    int getAllFeedBackCount();
}
